home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Tools / Mesa-1.2.1 / Makefile.orig < prev    next >
Encoding:
Makefile  |  1995-07-05  |  5.3 KB  |  190 lines

  1. # Top-level makefile for Mesa
  2.  
  3. # Mesa 3-D graphics library
  4. # Version:  1.2.1
  5. # Copyright (C) 1995  Brian Paul  (brianp@ssec.wisc.edu)
  6. #
  7. # This library is free software; you can redistribute it and/or
  8. # modify it under the terms of the GNU Library General Public
  9. # License as published by the Free Software Foundation; either
  10. # version 2 of the License, or (at your option) any later version.
  11. #
  12. # This library is distributed in the hope that it will be useful,
  13. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  15. # Library General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU Library General Public
  18. # License along with this library; if not, write to the Free
  19. # Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20.  
  21.  
  22. # $Id: Makefile,v 1.17 1995/06/21 16:25:23 brianp Exp $
  23.  
  24. # $Log: Makefile,v $
  25. # Revision 1.17  1995/06/21  16:25:23  brianp
  26. # added irix5-dso, linux-elf and unixware targets
  27. # Release 1.2.1
  28. #
  29. # Revision 1.16  1995/05/22  16:53:59  brianp
  30. # Release 1.2
  31. #
  32. # Revision 1.15  1995/05/16  14:12:23  brianp
  33. # added amix target
  34. # added contrib tree to tar file
  35. #
  36. # Revision 1.14  1995/04/20  17:35:52  brianp
  37. # made SCO a separate target
  38. #
  39. # Revision 1.13  1995/04/20  13:32:34  brianp
  40. # added SCO to Linux config
  41. #
  42. # Revision 1.12  1995/04/17  14:50:24  brianp
  43. # 1.1.4 beta release
  44. #
  45. # Revision 1.11  1995/03/31  17:05:29  brianp
  46. # 1.1.3 beta release
  47. #
  48. # Revision 1.10  1995/03/14  14:34:02  brianp
  49. # 1.1.2 beta release
  50. #
  51. # Revision 1.9  1995/03/09  14:51:39  brianp
  52. # added osf1 target per Joseph Canedo
  53. #
  54. # Revision 1.8  1995/03/08  19:50:30  brianp
  55. # added depend files to TAR_FILES
  56. #
  57. # Revision 1.7  1995/03/07  14:38:33  brianp
  58. # changed NAME to Mesa-1.1.1beta
  59. #
  60. # Revision 1.6  1995/03/07  14:31:31  brianp
  61. # new hpux CFLAGS per Jan Springer's suggestion
  62. #
  63. # Revision 1.5  1995/03/04  20:00:57  brianp
  64. # changed tar NAME from Mesa1.1beta to Mesa-1.1beta
  65. #
  66. # Revision 1.4  1995/03/04  19:47:13  brianp
  67. # 1.1 beta revision
  68. #
  69. # Revision 1.3  1995/03/01  21:11:53  brianp
  70. # added GLUT to tar target
  71. #
  72. # Revision 1.2  1995/02/24  16:20:26  brianp
  73. # added netbsd target
  74. #
  75. # Revision 1.1  1995/02/24  16:19:25  brianp
  76. # Initial revision
  77. #
  78.  
  79.  
  80. # To add a new configuration for your system add it to the list below
  81. # then update the Make-config file.
  82.  
  83.  
  84.  
  85. default:
  86.     @echo "Type one of the following:"
  87.     @echo "   make aix            for IBM RS/6000 systems with AIX"
  88.     @echo "   make amix           for Amiga 3000 UX  SVR4 v2.1 systems"
  89.     @echo "   make freebsd        for FreeBSD systems with GCC"
  90.     @echo "   make gcc            for a generic system with GCC"
  91.     @echo "   make hpux           for HP systems with HPUX"
  92.     @echo "   make irix4          for SGI systems with IRIX 4.x"
  93.     @echo "   make irix5          for SGI systems with IRIX 5.x"
  94.     @echo "   make irix5-dso      for SGI systems with IRIX 5.x, make DSO"
  95.     @echo "   make irix6          for SGI systems with IRIX 6.x"
  96.     @echo "   make linux          for Linux systems with GCC"
  97.     @echo "   make linux-elf      for Linux systems, make ELF shared lib"
  98.     @echo "   make mswindows      for MS Windows"
  99.     @echo "   make netbsd         for NetBSD 1.0 systems with GCC"
  100.     @echo "   make osf1           for DEC Alpha systems with OSF/1"
  101.     @echo "   make sco            for SCO Unix systems with ODT"
  102.     @echo "   make sunos4         for Sun systems with SunOS 4.x"
  103.     @echo "   make sunos4-gcc     for Sun systems with SunOS 4.x and GCC"
  104.     @echo "   make sunos5         for Sun systems with SunOS 5.x"
  105.     @echo "   make sunos5-gcc     for Sun systems with SunOS 5.x and GCC"
  106. #    @echo "   make ultrix         for DEC systems with Ultrix"
  107.     @echo "   make unixware       for PCs running UnixWare"
  108.     @echo "   make vistra         for Stardent Vistra systems"
  109.     @echo "   make clean"
  110.  
  111.  
  112.  
  113. aix amix freebsd gcc hpux irix4 irix5 irix5-dso irix6 linux linux-elf netbsd osf1 sco sunos4 sunos4-gcc sunos5 sunos5-gcc ultrix unixware vistra:
  114.     -mkdir lib
  115.     cd src ; $(MAKE) $@
  116.     cd src-tk ; $(MAKE) $@
  117.     cd src-aux ; $(MAKE) $@
  118.     cd src-glu ; $(MAKE) $@
  119.     cd demos ; $(MAKE) $@
  120.     cd samples ; $(MAKE) $@
  121.     cd book ; $(MAKE) $@
  122.  
  123. mswindows:
  124.     @echo "See windows/README.WIN for installation"
  125.  
  126.  
  127.  
  128. # Remove .o files, emacs backup files, etc.
  129. clean:
  130.     -rm include/*~
  131.     -rm include/GL/*~
  132.     -rm lib/*.a
  133.     -rm src/*.o src/*~
  134.     -rm src-aux/*.o
  135.     -rm src-glu/*.o src-glu/*~
  136.     -rm src-tk/*.o
  137.     -rm book/*.o book/*~
  138.     -rm demos/*.o demos/*~
  139.     -rm samples/*.o samples/*~
  140.  
  141.  
  142. # Remove everthing that can be remade
  143. realclean: clean
  144.     cd book ; $(MAKE) realclean
  145.     cd demos ; $(MAKE) realclean
  146.     cd samples ; $(MAKE) realclean
  147.     -rm lib/*.a
  148.  
  149.  
  150.  
  151. HOME = Mesa
  152. NAME = Mesa-1.2.1
  153.  
  154. TAR_FILES =    \
  155.     $(HOME)/README            \
  156.     $(HOME)/LICENSE            \
  157.     $(HOME)/Makefile        \
  158.     $(HOME)/Make-config        \
  159.     $(HOME)/include/*.h        \
  160.     $(HOME)/include/GL/*.h        \
  161.     $(HOME)/src*/NOTES        \
  162.     $(HOME)/src*/README        \
  163.     $(HOME)/src*/Makefile        \
  164.     $(HOME)/src*/depend        \
  165.     $(HOME)/src*/*.[ch]        \
  166.     $(HOME)/demos/Makefile        \
  167.     $(HOME)/demos/*.c        \
  168.     $(HOME)/demos/isosurf.dat    \
  169.     $(HOME)/book/Makefile        \
  170.     $(HOME)/book/NOTES        \
  171.     $(HOME)/book/README        \
  172.     $(HOME)/book/*.[ch]        \
  173.     $(HOME)/samples/Makefile    \
  174.     $(HOME)/samples/NOTES        \
  175.     $(HOME)/samples/README        \
  176.     $(HOME)/samples/*.rgb        \
  177.     $(HOME)/samples/*.c        \
  178.     $(HOME)/GLUT/README-MESA    \
  179.     $(HOME)/widgets            \
  180.     $(HOME)/contrib            \
  181.     $(HOME)/windows
  182.  
  183. tar:
  184.     cd .. ; \
  185.     tar -cvf $(NAME).tar $(TAR_FILES) ; \
  186.     gzip $(NAME).tar ; \
  187.     mv $(NAME).tar.gz $(HOME)
  188.  
  189.  
  190.